package cn.wolfcode.trip.api.controller;

import cn.wolfcode.trip.base.domain.StrategyComment;
import cn.wolfcode.trip.base.service.IStrategyCommentService;
import cn.wolfcode.trip.base.util.UploadUtil;
import jdk.nashorn.internal.objects.annotations.Getter;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
import org.springframework.web.multipart.MultipartFile;

import java.util.HashMap;
import java.util.Map;

/*
* 大评论接口
*
* */
@RestController
@RequestMapping("comments")
public class CommentController {

    @Autowired
    private IStrategyCommentService commentService;

    /**
     * 根据评论id查询评论对象
     */
    @GetMapping("{id}")
    public StrategyComment getById(@PathVariable Long id){
        return commentService.getById(id);
    }

}
